/**
 * Created by ss on 16/4/10.
 */
var $ = require('jquery');
var init = require('../util/init.js');
var receiveList = require('../component/index/receiveList.js');
var bottomButton = require('../component/common/bottomButton.js');
var receiveList = require('../component/index/receiveList.js');
var util = require('../util/util.js');
require('../../scss/index.scss');
require('../../scss/bottomButton.scss');

init.initNav(true, '发件列表', 'http://d2.freep.cn/3tb_160514162942cwiv564060.png');
$.get(util.getAjaxUrl("/getSendList"), {phone: util.getUserStore()})
    .then(function (data) {
        data.data = data.data.map(function (item) {
            item.link = './receiveDetail?type=send&id=' + item.id;
            return item;
        });
        receiveList.init($('#receiveList'), data.data);
    });
$(".rightIcon").on("click", function (e) {
    util.changePage("./addSend");
});
bottomButton.init($('#bottomButton'), 1);




